<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<ul>
 <%
 String name=request.getParameter("uname");
 out.print("<h1>欢迎你，"+name+",下面是我们班6大帅哥，喜欢谁，一万两银子拖走</h1>");
  String []ar={"李本松","陈兵","戴颖","胡冰冰","方亚兵","朱峰"};
  for(int i=0;i<ar.length;i++){
  %>
  <li><%=ar[i]%></li>
  <%}%>
  <%
   for(String s:ar){
   	out.print("<script>alert('"+s+"');</script>");
   }
   %>
 </ul> 
</body>
</html>